//canvas内容移动边缘检测
function isEdge(
  x: number,
  y: number,
  len: number,
  width: number,
  height: number
): boolean {
  if (x >= 5 && x <= width - 1.5 * len) {
    if (y >= 5 && y <= height - 0.5 * len) {
      return true;
    }
  }

  return false;
}

export default isEdge;
